<div class="layui-fluid">
    <div class="layui-card">
      <div class="layui-card-body">
        <form class="layui-form" action="<?=url('user/edit')?>">
            <input type="hidden" name="id" value="<?=$info['id']?>">


            <div class="layui-form-item">
              <label class="layui-form-label">姓名</label>
              <div class="layui-input-block">
                <input type="text" name="username" value="<?=$info['username']?>" required lay-verify="required" placeholder="请输入姓名" autocomplete="off" class="layui-input">
              </div>
            </div>

            <div class="layui-form-item">
              <label class="layui-form-label">电话</label>
              <div class="layui-input-block">
                <input type="text" name="phone" value="<?=$info['phone']?>" required lay-verify="required" placeholder="请输入电话" autocomplete="off" class="layui-input">
              </div>
            </div>

            <div class="layui-form-item">
              <label class="layui-form-label">所在地</label>
              <div class="layui-input-block">
                <input type="text" name="city" value="<?=$info['city']?>" required lay-verify="required" placeholder="请输入所在地" autocomplete="off" class="layui-input">
              </div>
            </div>



            <div class="layui-form-item">
              <label class="layui-form-label">性别</label>
              <div class="layui-input-block">
                    <select name="sex">
                        <option value="">请选择分类</option>
                      <?php foreach(c('type.sex') as $key => $v):?>
                          <option value="<?=$key?>" <?php if($key == $info['sex']):?>selected<?php endif; ?> ><?=$v?></option>
                      <?php endforeach;?>
                    </select>
              </div>
            </div>
            <div class="layui-form-item">
              <label class="layui-form-label">是否认证</label>
              <div class="layui-input-block">
                    <select name="is_rz">
                        <option value="">请选择分类</option>
                      <?php foreach(c('type.is_rz') as $key => $v):?>
                          <option value="<?=$key?>" <?php if($key == $info['is_rz']):?>selected<?php endif; ?> ><?=$v?></option>
                      <?php endforeach;?>
                    </select>
              </div>
            </div>
            <div class="layui-form-item">
              <label class="layui-form-label">状态</label>
              <div class="layui-input-block">
                    <select name="status">
                        <option value="">请选择分类</option>
                      <?php foreach(c('type.status') as $key => $v):?>
                          <option value="<?=$key?>" <?php if($key == $info['status']):?>selected<?php endif; ?> ><?=$v?></option>
                      <?php endforeach;?>
                    </select>
              </div>
            </div>

          <div class="layui-form-item">
            <div class="layui-input-block">
              <button class="layui-btn" lay-submit lay-filter="myform">立即提交</button>
              <button type="reset" class="layui-btn layui-btn-primary">重置</button>
            </div>
          </div>
        </form>
      </div>
    </div>
</div>
<script>
layui.use(['form'], function(){
  var $ = layui.$
  ,form = layui.form;
  form.render();

  var ue = UE.getEditor('container');
});
</script>
